<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:c="http://java.sun.com/jstl/core"
	  >
<head>
	<ui:insert name="titulo"></ui:insert>
	<link href="css/default.cs1s" rel="stylesheet" type="text/css" />
</head>

<body>
	<form id="form1" jsfc="h:form">
		 
                    <div id="header">
                            <div class="center_wrapper">
                                    <div id="toplinks">
                                            <div id="toplinks_inner">
                                                    <a href="#{facesContext.externalContext.requestContextPath}/home.jsf">Home</a> | 
                                                    
                                                    <c:choose>
                                                            <c:when test="#{usuarioController.usuarioLogado != null}">

                                                                <!--h:outputLink value="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout">
                                                                    <h:outputText value="Sair"/>
                                                                </h:outputLink-->

                                                                <h:outputText value="#{usuarioController.usuarioLogado}"></h:outputText>                                                                
                                                                |<h:commandLink action="#{usuarioController.logout}">
                                                                    <h:outputText value="Sair"/>
                                                                </h:commandLink>                                                     
                                                            </c:when>
                                                            <c:otherwise>
                                                                <h:commandLink action="#{usuarioController.novoUsuario}" immediate="true">
                                                                    <h:outputText value="Registrar"/>
                                                                </h:commandLink>                                                                 
                                                                |<h:commandLink action="#{usuarioController.logar}" immediate="true">
                                                                    <h:outputText value="Entrar"/>
                                                                </h:commandLink>                                                                                                                     
                                                            </c:otherwise>
                                                    </c:choose>
                                            </div>
                                    </div>
                                    <div class="clearer"></div>

                                    <div id="site_title">
                                            <h1><a href="#{facesContext.externalContext.requestContextPath}/home.jsf">Na <span>Estrada</span></a></h1>
                                            <p></p>
                                    </div>
                            </div>
                    </div>

                    <div id="navigation">
                            <div class="center_wrapper">
                                    <ul>
                                            <li class="current_page_item">
                                                <h:outputLink value="#{facesContext.externalContext.requestContextPath}/home.jsf">
                                                    <h:outputText value="Home"/>
                                                </h:outputLink>
                                            </li>
                                            <li class="current_page_item">
                                                <h:commandLink action="#{usuarioController.enviarFoto}">
                                                    <h:outputText value="Enviar foto"/>
                                                </h:commandLink>
                                            </li>                                        
                                        
                                            <!--li>
                                                <h:outputLink value="#{facesContext.externalContext.requestContextPath}/amigos.jsf">
                                                    <h:outputText value="Amigos"/>
                                                </h:outputLink>
                                            </li>                                            
                                            <li>
                                                <h:outputLink value="#{facesContext.externalContext.requestContextPath}/buscar.jsf">
                                                    <h:outputText value="Buscar"/>
                                                </h:outputLink>
                                            </li-->
                                    </ul>

                                    <div class="clearer"></div>
                            </div>
                    </div>
 
                    <div id="main_wrapper_outer">
                            <div id="main_wrapper_inner">
                                    <div class="center_wrapper">
                                            <div class="left" id="main">
                                                    <div id="main_content">
                                                            <ui:insert name="conteudo">

                                                            </ui:insert>
                                                    </div>
                                            </div>

                                            <div class="right" id="sidebar">
                                                    <div id="sidebar_content">

                                                            <!--div class="box">
                                                                    <div class="box_title">Top 3</div>
                                                                    <div class="box_content">

                                                                            <div class="thumbnails">
                                                                                    <a href="#" class="thumb"><img src="img/sample-thumbnail.jpg" width="75" height="75" alt="" /></a>
                                                                                    <a href="#" class="thumb"><img src="img/sample-thumbnail.jpg" width="75" height="75" alt="" /></a>
                                                                                    <a href="#" class="thumb"><img src="img/sample-thumbnail.jpg" width="75" height="75" alt="" /></a>
                                                                                    <div class="clearer"></div>
                                                                            </div>
                                                                    </div>
                                                            </div-->                                                        

                                                            <div class="box">
                                                                    <div class="box_title">Categorias</div>

                                                                    <div class="box_content">
                                                                            <ul>    
                                                                                    <!--li>
                                                                                        <h:outputLink value="#{facesContext.externalContext.requestContextPath}/index.jsf">
                                                                                            <h:outputText value="Motos"/>
                                                                                        </h:outputLink>                                                                                        
                                                                                    </li-->
                                                                                    
                                                                                    <li><a href="#{facesContext.externalContext.requestContextPath}/home.jsf">Motos</a></li>
                                                                                    
                                                                            </ul>
                                                                    </div>

                                                            </div>


                                                            <!--div class="box">
                                                                    <div class="box_title">Publicidade</div>

                                                                    <div class="box_content">
                                                                            Aenean sit amet dui at felis lobortis dignissim.
                                                                    </div>

                                                            </div-->                                                        
                                                    </div>
                                            </div>
                                            <div class="clearer"></div>
                                    </div>
                            </div>
                    </div>

                    <div id="dashboard">
                            <div id="dashboard_content">
                                    <div class="center_wrapper">

                                            <!--div class="col3 left">
                                                    <div class="col3_content">

                                                            <h4>Publicidade</h4>
                                                            <ul>
                                                                    <li><a href="#">Consequat molestie</a></li>
                                                                    <li><a href="#">Sem justo</a></li>
                                                            </ul>
                                                    </div>
                                            </div>

                                            <div class="col3mid left">
                                                    <div class="col3_content">

                                                            <h4>Publicidade</h4>
                                                            <ul>
                                                                    <li><a href="#">Semper fermentum</a></li>
                                                                    <li><a href="#">Sem justo</a></li>
                                                            </ul>
                                                    </div>
                                            </div>

                                            <div class="col3 right">
                                                    <div class="col3_content">
                                                            <h4>Publicidade</h4>
                                                            <ul>
                                                                    <li><a href="#">Semper lobortis</a></li>
                                                                    <li><a href="#">Consequat molestie</a></li>				
                                                            </ul>
                                                    </div>
                                            </div-->

                                            <div class="clearer"></div>
                                    </div>
                            </div>
                    </div>

                    <div id="footer">
                            <div class="center_wrapper">

                                    <div class="left">
                                    </div>
                                    <div class="right">
                                                                        
                                    </div>

                                    <div class="clearer"></div>
                            </div>
                    </div> 						 
				 
	</form>
</body>

</html>
